<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Đặng Khánh Trung
 * Date: 11/7/12
 * Time: 6:37 PM
 * To change this template use File | Settings | File Templates.
 */
// No direct access
defined('_JEXEC') or die;

/**
 * Dienbienhocvi component helper.
 *
 * @package		Joomla.Administrator
 * @subpackage	com_vast
 * @since		1.6
 */
class DienbienhocvisHelper
{
    public static $extension = 'com_vast';

    public static function getActions()
    {
        // Reverted a change for version 2.5.6
        $user	= JFactory::getUser();
        $result	= new JObject;

        $assetName = 'com_vast';

        $actions = JAccess::getActions('com_vast', 'component');   
                      
        foreach ($actions as $action) {                        
            $result->set($action->name, $user->authorise($action->name, $assetName));                
        }   
                      
        return $result;
    }

}